<!DOCTYPE HTML>
<html>
    <head>
        <!--<meta charset="utf-8">-->
        <meta name="viewport" content="width=device-width,initial-scale=1.0">
        <title>maintest3</title>
        <!--[if IE]>
            <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <link href="<?php echo Yii::app()->baseUrl; ?>/css/bootstrap.min.css" rel="stylesheet" type="text/css">
        <style>
            .bor{border: 1px red solid}
        </style>

    </head>
    <body>
        <button onclick="add()">add</button>
        <button id="btn1" onmouseover="change()">myFunction</button>
        <div id="count"></div>
        <div id="demo"></div>


        <button onclick="myFunction()">点击这里</button>
        <p id="demo"></p>
        <p id="demo2"class="bor"onmouseover  ="change()" >111</p>



        <div> <input type=checkbox name="ck" onclick="checkAc(this)">
            <span style="margin-top:5px; ">我接受许可条款（A）</span></div>
        <div class="offset8">
            <button id="third-to-fourth" class="btn" >下一步(N)</button> 
        </div>
        <script>
            function checkAc(ck) {
                if (ck.checked) {
//                    $(document).getElementById("third-to-fourth").disabled = ;
                    $("#third-to-fouth").removeAttr("disabled");

                }
            }
//            onerror = handleErr;
//            var txt = "";
//
//            function handleErr(msg, url, l)
//            {
//                txt = "There was an error on this page.\n\n";
//                txt += "Error: " + msg + "\n";
//                txt += "URL: " + url + "\n";
//                txt += "Line: " + l + "\n\n";
//                txt += "Click OK to continue.\n\n";
//                alert(txt);
//                return true;
//            }

            function message()
            {
                adddlert("Welcome guest!");
            }
        </script>
        <script>
            function change()
            {
                document.getElementById("demo2").innerHTML = "Click me";
                addff("'abcd");
            }
            function myFunction()
            {
                var x;
                var txt = "";
                //var tx = "";
                var person = {fname: "Bill", lname: "Gates", age: 56};
                for (x in person)
                {
                    txt = txt + x + ": " + person[x] + "<Br>";
                }

                document.getElementById("demo").innerHTML = txt;

            }

            //            var count=0;
            function myFun()//弹出提示框，并且与没页面交互
            {
                var x;
                var person = prompt("input your name", "your name");
                if (person != null)
                {
                    x = "hello" + person + "! Weather is perfect";
                    document.getElementById("demo").innerHTML = x;
                }
            }

            //add
            var count = 0;
            function add()
            {

                count += 1;
                document.getElementById("count").innerHTML = count;
            }
        </script>
<!--        <script>
                    var counter = 0;
                            function addd() {
                            return counter += 1;
                            }

                    function myFunction() {
                    document.getElementById("demo").innerHTML = addd();
                    }
        </script>-->


        <script src="<?php echo Yii::app()->baseUrl; ?>/assets/js/jquery-1.9.1.js"></script>
        <script src="<?php echo Yii::app()->baseUrl; ?>/assets/js/bootstrap.min.js"></script>
    </body>
</html>